axios.defaults.baseURL='http://api-breakingnews-web.itheima.net'
axios.interceptors.request.use(config => {
// Do something before request is sent
if (config.url.indexOf('my') !== -1) {
    config.headers.Authorization = localStorage.getItem('token') || ''

}
return config;
},error => {
// Do something with request error
return Promise.reject(error);
});